.playground {
  max-width: 1200px;
  margin: 0 auto;
}

.playgroundHeader {
  text-align: center;
  margin-bottom: 48px;
}

.playgroundTitle {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.playgroundSubtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  font-weight: 400;
}

.demoTabs {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 32px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.demoTab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.demoTab:hover {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.05);
}

.activeTab {
  background: rgba(59, 130, 246, 0.2) !important;
  color: #60a5fa !important;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.demoArea {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

.demoGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.demoCard {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(20px);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.demoCard::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.demoCard:hover {
  border-color: rgba(59, 130, 246, 0.3);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.demoCard:hover::before {
  opacity: 1;
}

.active {
  border-color: rgba(59, 130, 246, 0.5) !important;
  background: rgba(59, 130, 246, 0.05) !important;
}

.active::before {
  opacity: 1;
}

.cardIcon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.cardTitle {
  font-size: 1.25rem;
  font-weight: 600;
  color: white;
  margin-bottom: 8px;
  line-height: 1.3;
}

.cardDescription {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 16px;
}

.statusIndicator {
  min-height: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.statusText {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  font-style: italic;
}

.predictingState {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f59e0b;
  font-size: 0.85rem;
  font-weight: 600;
  animation: pulse 1s ease-in-out infinite;
}

.triggeredState {
  color: #22c55e;
  font-size: 0.85rem;
  font-weight: 600;
  animation: bounce 0.5s ease-out;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes bounce {
  0%, 20%, 53%, 80%, 100% { transform: translate3d(0, 0, 0); }
  40%, 43% { transform: translate3d(0, -8px, 0); }
  70% { transform: translate3d(0, -4px, 0); }
  90% { transform: translate3d(0, -2px, 0); }
}

.demoInfo {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.infoCard {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  backdrop-filter: blur(10px);
}

.infoCard h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: white;
  margin-bottom: 12px;
}

.infoCard p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

.configPanel {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  backdrop-filter: blur(10px);
}

.configPanel h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: white;
  margin-bottom: 16px;
}

.configGrid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.configItem {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.configItem:last-child {
  border-bottom: none;
}

.configItem label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  font-weight: 500;
}

.configItem span {
  color: #60a5fa;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(59, 130, 246, 0.1);
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.codeExample {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 24px;
  backdrop-filter: blur(20px);
}

.codeExample h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: white;
  margin-bottom: 16px;
}

.codeBlock {
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 0;
  overflow-x: auto;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
  .demoArea {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .demoGrid {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 768px) {
  .demoTabs {
    flex-direction: column;
    gap: 8px;
  }
  
  .demoTab {
    width: 100%;
    justify-content: flex-start;
    padding: 16px;
  }
  
  .demoGrid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .demoCard {
    padding: 20px;
  }
  
  .playgroundTitle {
    font-size: 1.75rem;
  }
  
  .codeExample {
    padding: 20px;
  }
  
  .codeBlock {
    font-size: 0.8rem;
  }
}